package com.imooc.demo.service.impl;

import com.imooc.demo.dao.MessageDao;
import com.imooc.demo.entity.Message;
import com.imooc.demo.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageServiceImpl implements MessageService {

    @Autowired
    MessageDao messageDao;

    @Override
    public List<Message> getGongGao() {
        return messageDao.getGongGao();
    }
}
